package com.kk.netty.basice.demo2;

import io.netty.channel.DefaultEventLoopGroup;
import io.netty.util.concurrent.EventExecutor;

public class EventLoopTest11 {
    public static void main(String[] args) {
        // 内部创建了两个 EventLoop,每个都维护了一个线程
        DefaultEventLoopGroup group = new DefaultEventLoopGroup (2);
        System.out.println (group.next () );
        System.out.println (group.next () );
        System.out.println (group.next () );
        System.out.println (group.next () );

        for (EventExecutor eventExecutor : group) {
            System.out.println (eventExecutor );
        }
    }
}
